package view;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.util.Observable;
import java.util.Observer;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class SimulatorUI extends JFrame implements Observer
{
  private JPanel my_panel;
  
  
  public SimulatorUI()
  {
    super("Scheduler Simulation");
    
  }
  
  private JPanel setupMasterPanel()
  {
    final JPanel master_panel = new JPanel(new BorderLayout());
    final JPanel top_panel = setupTopPanel();
    final JPanel center_panel = setupCenterPanel();
    master_panel.add(top_panel, BorderLayout.NORTH);
    master_panel.add(center_panel, BorderLayout.CENTER);
    return master_panel;
  }
  
  private JPanel setupTopPanel()
  {
    final JPanel top_panel = new JPanel(new FlowLayout());
    final JButton start = new JButton("Start");
    final JButton initialize = new JButton("Initialize");
    top_panel.add(start);
    top_panel.add(initialize);
    return top_panel;
  }
  
  private JPanel setupCenterPanel()
  {
    final JPanel center_panel = new JPanel(new BorderLayout());
    final JTextField text_field = new JTextField();
    center_panel.add(text_field);
    return center_panel;
  }
  
  @Override
  public void update(Observable the_object, Object the_arg)
  {
    // TODO Auto-generated method stub
    
  }

}
